FROM centos
MAINTAINER Drake Wang "yadong_wang@foxitsoftware.com"

ENV TERM xterm

RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && \
cd /etc/yum.repos.d && curl http://mirrors.aliyun.com/repo/Centos-7.repo -o Centos-7.repo && \
rpm -Uvh http://yum.puppetlabs.com/el/7Server/products/x86_64/puppetlabs-release-7-12.noarch.rpm && \
#RUN rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
rpm -Uvh https://mirrors.tuna.tsinghua.edu.cn/epel/epel-release-latest-7.noarch.rpm && \
yum -y install sudo make puppet && \
yum clean all
#COPY puppet/modules/smx_os/files/get_server.rb /usr/share/ruby/vendor_ruby/facter/get_server.rb
#RUN echo 'root:root' | chpasswd